
Automatic placement can fill a whole enclosed room, including the space directly above the stairs. The piece to change is the floor on the destination storey.
Find the floor that covers the steps
In Build Mode, go up to the landing level and identify which flooring piece covers the top of the staircase. If a single piece fills that entire room, remove that piece. Keep the stairs in place so you can see their footprint while rebuilding.
Source: Floor placement modes, Players explain how to leave an opening
Frame the opening with separate pieces
Select Floor and choose a custom outline or rectangle placement. For stairs in the middle of a room, fill a strip on either side of the stairwell. Add shorter strips across the ends wherever you need a landing. The edges should meet without crossing the opening. Leave Build Mode and walk upstairs to check the clearance.
Source: Floor placement modes, Players explain how to leave an opening
Sources
Interfaces and rules can change. Check the official pages above for current requirements.