If you play with the mouse, you can try the ‘Try Pitch Lock’ option on the input page of the vorpX menu. Two caveats:
1. This is a general option, I’m not sure whether it actually works in FS 2022.
2. If it works, it will also lock y-axis mouse movement in menus, hence there is a shortcut that temporarily unlocks the y-axis when needed (CTRL+SHIFT).