Not everyone is built to press directly overhead.
Whether it's due to a joint restriction, muscle tightness or training the muscles how to properly go overhead.
Whilst that is being addressed, a good alternative is the landmine shoulder press.
It still allows you to work the shoulders by pressing upwards, just not directly overhead.
A little used variation is the shoulder to shoulder press.
I like it because the other hand plays an assistance role allowing a bit more weight than usual to be used. Lifting more weight isn't a bad thing either!
This is my, mostly, Personal Trainer musings and information which I hope you'll find helpful!