Doggy style

I can’t seem to do doggy style in a comfortable way during sex. It’s my boyfriend’s favourite position, but for some reason, I can’t get my back to bend in the certain angle. What’s the best way to do it without pulling any muscles in my legs, and mostly to not feel any pain when he’s inside me? I can’t get myself to relax in the position.