The mod that is causing this (on my world) is
Better Animations Collection - Minecraft Mods - CurseForge
if you have this problem, disable this mod and try it again- if it works normally its this mod's fault.
Open the Minecraft launcher, it opens without problems and then I clicked the button to play the most recent version, when I clicked the launcher it closed as it normally does when playing a version; however, Minecraft did not open and literally hours went by and it did not open so I had to close it (this is the problem I have since the beginning)
When I did the solution you suggested and clicked play in the launcher now with the procedure done the game opened now yes, the problem seemed to be fixed but then I closed the game again and reopened it without doing anything else and it did not open again, in short, it only opened the first time but when I closed it again the problem of not opening continued