Thanks for the post.
My guess, every time it crashes and restarts, it has to rebuild its entire context and re-analyzing your workspace and I guess uses tokens again?
Can you check a few things for me? Then again, if Xcode crashes, you should file a bug and post the crash file here as well.
Go to System Settings > Privacy & Security > Developer Tools and check Xcode is added and toggled on. If you see any specific Coding Intelligence or Claude-related daemons in the list, enable them as well. Then on Privacy & Security > Full Disk Access check Xcode toggle is on.
But if it crashes this is definitely a bug the Xcode team needs to address. I highly recommend filing a bug with a sysdiagnose attached immediately after the crash occurs so the engineering team can review.
Once you open the bug report, please post the FB number here for my reference.
If you have any questions about filing a bug report, take a look at
Bug Reporting: How and Why?
Albert WWDR