FIX: This is by far the best alternative I can find apart from actually fixing it, but I actually found this because of a different glitch where if I was fullscreen my game would lag and if I wasn't fullscreen obviously it would suck so in my search for an alternative I found this. https://www.youtube.com/watch?v=xuyPuOLviNo (Not my video). It runs minecraft perfectly borderless and has worked perfectly for me for years. May be a bit annoying that you have to do it every time at launch but this 100% works for me, and you can definitely get used to it.
FIX: This is by far the best alternative I can find apart from actually fixing it, but I actually found this because of a different glitch where if I was fullscreen my game would lag and if I wasn't fullscreen obviously it would suck so in my search for an alternative I found this. https://www.youtube.com/watch?v=xuyPuOLviNo (Not my video). It runs minecraft perfectly borderless and has worked perfectly for me for years. May be a bit annoying that you have to do it every time at launch but this 100% works for me, and you can definitely get used to it.