Hey & welcome!
What kind of guitar are you using? Can you post a picture of your posture & hands playing guitar? That info would help to figure out any potential problems. You might consider standing or at least wearing a strap. This tutorial covers proper posture & body mechanics.
https://www.guitartricks.com/tutorial/1141/
Having said all that, you might benefit from a guitar with wider string spacing & or long scale length. With that in mind you could go to your local guitar store, explain the problem & try several guitars to see if another one fits your hands better.
Hope that helps!
Christopher Schlegel
Guitar Tricks Instructor
Christopher Schlegel Lesson Directory