I dont have height issues but even if I did I don't think I would consider such a procedure. But yes women are shallow. It can be a cruel ass game. The women that disrespect you now may want you when their life ain't go the way they planned.
I guess a good way to put it is don't desire what doesn't deserve you when it comes to women. I worked with probably the most beautiful woman I ever seen in person. A true chocolate queen. I still dream about her. And she was a chill ass girl. Her man at the time was a dude about your height. He didn't seem anything special, made as much as me.
Sometimes we have to work on ourselves. Find that confidence that women are attracted to.
Good luck tho bruh, never give up. Learn from your mistakes and make adjustments. No pun.