I have the same issue
whereas before no problem
and i tried everything reinstall windows reinstall java reinstall my driver put 12go on the modpack.
I'm starting to despair that no one will find the solution :(
(My pc : ryzen 5 2600x and rx 580 8go and i have 16go of ram windows 10)