I ran into this issue and I've spent last week thinking about all kind of possibilities, even having a RAM issue (passing long lasting tests), some kind of undetected malware... you name it. Behaviour is really odd because i had a managed PC in office, running Office 365 64-bit, without issues, but in my personal home PC same .accdb files crashed in simple queries sometimes, but at first without being able to find a pattern. If I did a compact and repair in my office laptop, then it worked on my personal PC. But after some time I had the crashes.
Now I now the crash happens when a Compact and Repair is performed in my personal PC. Also when I create a new blank database and import a table and a query to test, it crashed. So somehow the new .accdb created is "wrong". I thought I had some malware, but I passed every king of antivirus and nothing was detected. Because Compact and Repair starts creating a blank database, compacting it makes the good one where query works into a "wrong" one that produced the crash. I was opening .accdb in safe mode (Access does this after a crash), but as suggested in many places, also decompiling and compacting, and today I've found that when opened in Safe Mode, then the new database created is "good", and also Compact and Repair generates an .accdb that do not crashes. Which lasts until next compacting done out of safe mode which was what I was doing in my tests so I didn't noticed the first compacting in safe mode "fixed" the .accdb.
After seeing this thread (by the way there are almost no findings of it, specifically for "Faulting module name: ACEES.DLL") I checked Microsoft 365 versions, not being conscious that are different in office and home PC, because office one is managed and set to Semiannual Enterprise channel. So I changed channel in my home PC and voilà, now everything works. Still amazed that a released version of Access has such an issue, being myself an Access user since it was released decades ago.