[help] i have a problem with pokémon ultra sun of 'citra' and 'pkhex'

Hi, recently I had a problem playing Pokémon Ultra Sun in the Citra 3DS emulator and with the program to modify the game, PKHeX.
When I try to open the ‘main’ of my Citra game in Pokemon Ultra Sun in the PKHeX, I get a message that says so:

'Attempted to load an unsopported file type / size. This could
be caused by loading a different generation Pokemon file on
an unsopported generation or your file is corrupt.

File Loaded:
C: \ Users \ User \ AppData \ Roaming \ Citra \ sdmc \ Nintendo
3DS \ 00000000000000000000000000000000 \ 0000000000000000
0000000000000000 \ title \ 00040000 \ 001b5000 \ data \ 00000001 \ m
ain

File Size: 445440 bytes
445440 bytes (0x6CC00) ’

I tried to delete the game and the file, but that message still comes out.
Wait for someone to read this and help me out.

Greetings.

In order for us to provide better support, we need to see the log generated by Citra. This guide will walk you through how you can obtain the log file: How to Upload the Log File.

Doesn’t sound like a Citra issue.
Anyway make sure that you have saved ingame at least twice and that you have the latest version of PKHeX downloaded from the official site https://projectpokemon.org/home/files/file/1-pkhex/
If it is up-to-date and still doesn’t work you should ask for help over there.

Copy the main file out of it’s default directory, and try opening it in Pkhex from there.