Studio "Login via browser" not working on Ubuntu

I have installed Studio on my new laptop that runs Ubtuntu 24.04 using Grapejuice and for some reason every time I run it it either closes randomly during loading or gives me one of the following errors:


image
image
Whenever I click either button nothing happens and I have WebView2 installed so it should work. Does anyone know what’s going wrong?

Update: It seems to have stopped giving the second and third errors.