I think you should view him as a regular man not the image of a pious man you thought he was, because that doesn’t exist. Growing up as a Muslim I’ve always been aware of the double standards, specially the men who outwardly showed society how religious they are and made sure their wives are covered up from head to toe. I’ve found them to be extremely controlling because they were up to no good(I knew that).
I’ve gone to study islam in depth after deciding to be a better Muslim(so much guilt when I was simply living a normal life) and it lead me to leave my faith and be free. I’ve studied the life of the Prophet and his Sahaba and it was hard to discover that they behaved no different to Daesh. The prophet himself had slave women. Safiyya bint Huyayy is one of them, the prophet kills her husband, brother and father and takes her for himself, it does say he marries her, it’s like saying the yazidi women accepted marriage after their family were killed. His other slave were given to him as a gift. He also desired his son’s wife and suddenly God conveniently speaks to him(through Gabriel) that after all he is the prophet and he is allowed to have any woman he desires, which lead to his son divorcing his wife so the prophet can marry her.
In the Quran the only Surah concerning women you’ll find that God(Allah) never speaks to women directly, he speaks to men in what to do with women, how to treat her if she doesn’t sleep with you etc, in the same surah God speaks to men in how many women they can have , their wives and their slaves, they don’t need to pay Mehr(dowry) for the slave women, they can use them as they like because they own them. You get the picture that this is written for men by men. Then there is the inheritance law where you see the clear injustice and frankly not compatible with modern day society and makes you question if God has made these laws for that time only because it can’t be for all times.
Regarding the vail and modest clothing, the time of the prophet they only wanted their women vailed, even when a slave woman became Muslim they insisted she remain bare chested so no one will confuse her with their elite women and also for their pleasure when she is serving them. To know for sure these books are from a man and a very insecure one for that is the 72 times 72 women men are promised to get in heaven, where as the poor wife only gets the husband she had on earth, when asked why would a wife only get her husband, they answered with, well there is no jealousy in heaven plus she will be the prettiest one of all the women😄
You only have one life try and live it for your happiness.