Ive had this issue a couple of times.
I updated to Sketchup 23 and I thought the issue was with an older version file when i opening in 23, but now it has happened with a file Ive made from scratch.
I go to use the 2d Document Export tool and Sketchup will run through the motions but then crash without making the file.
I then need to reopen and try again for the same thing to happen.
Anyone had a similar issue?