Thank you for reporting this issue. That definitely isn't intended behavior; on macOS I see these same menus opening downwards when positioned near the top of the screen. Are you using an external monitor, perhaps positioned above your primary monitor, or have you recently disconnected another monitor? It seems like the menu placement is confused and "thinks" there is more monitor above its current location than there really is.
Thanks for reporting this issue and for a