If after installing Windows several times it still doesn't work, it is clear that it is the game itself.
The only thing I can think of that you can do is uninstall GTA 5, and delete the entire GTA 5 folder from your hard/solid/m2 drive... and then install GTA 5 again, this way you make sure it's not left trace of any mod or file that is not 100% of the vanilla game.
Try if this works (if you haven't tried it already) and if it doesn't, I can only think of 2 more possible solutions:
If you have a CPU with integrated graphics, open the Windows device manager, look in Display adapters for the graphics card that corresponds to the processor, right click and click disable (only if you have an integrated graphics card and also a dedicated one).
The same thing happened to me a while ago that happened to you with GTA 5, only in my case it was with Red Dead Redemption 2, the game quit as soon as I opened it and when I disabled the processor graphics it stopped happening, I had to always play with it disabled, although at the same time I stopped having to deactivate it because in some update it was fixed.
Contact official RockstarGames support.
It is clear that it is a matter of the game, if you do not have any mod and it continues to fail, you have the right to receive official support from RockstarGames, surely they can help you better than me since it is their game and they know how it works 100% inside, So I would recommend that you contact them through their official support page (I didn't provide a link because I don't know if you can put links in this forum)
Try the 2 things that I have told you, hopefully it will work for you, and if not, you should contact RockstarGames support, yes, you must be a pain and not give up until they give you a solution, but they will give it to you with complete security since they are obliged to do so.
I would like to have a magical power or something that allows me to provide 100% functional and correct solutions in these cases, but unfortunately I don't have it, I only have computer technical knowledge and a lot of patience.
Everything else depends on whether I can think of possible causes or solutions to the problem, and to be honest, I have run out of ideas about what it could be or how it could be solved, if by chance something occurs to me I will let you know, but as I say, at this point, I can only recommend that you ask for official support from RockstarGames.
Anyway, let me know anything, I look forward to the day you tell me that you have managed to solve it.