This is usually solved by maintaining good posture.
Make sure you have a strap set at a comfortable & efficient length, not too long or short. Tilt the guitar neck up and away from your torso enough that you can comfortably reach around the neck so your wrist is not bent and your fingers have all the access they need to the fretboard.
This tutorial covers good posture.
https://www.guitartricks.com/lesson/13958
Hope that helps!