It looks like your middle finger is definitely bending in an unusual way, and pretty cramped up. Here's a random D major chord I found on Google:
https://www.uberchord.com/blog/d-chord-on-guitar-chord-shapes-major-scale-popular-songs-in-key-of-d/
My urge would be to straighten the fingers out a bit more, scoot the palm closer to the headstock.
-Carl.
Carl King[br]GuitarTricks Video Director / Producer