Available UI session types: [ Qt, tcsh, csh ] Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found

It would seem you are trying to run remotely and export an X session from a server.

I googled the invalid cookie error on Stack Exchange. It turned up: ssh - "Invalid MIT-MAGIC-COOKIE-1 key" when trying to run program remotely - Unix & Linux Stack Exchange

There are about 10 solutions there. Hopefully one of them will work for you. (You might want to talk to your local X wizard there. They may be able to identify which is the best solution for you.)