Screen keeps going to sleep when flip phone upside down

Wait 5 sec.

When I flip my phone upside down (like on a countertop) after about 10 seconds the screen goes black. Flipping the phone back upright and tapping the screen turns it back on, unlocked. I hate this.I tried turning temporarily developer options off and that fixed the issue. So its something within the dev options. I just cant for the life of me figure out what.Android 16, this has been an issue for at least 2-3 months.