It seems similar to this other report:
As I mentioned there, I have not experienced this myself, but I tend to restart the IDE frequently because I am always switching from one test build to another. So, even though I give it a lot of use, I might not notice a long term cumulative issue.
You are welcome to submit a formal bug report to the Arduino IDE 2.x issue tracker to allow the developers to more effectively track this issue:
https://github.com/arduino/arduino-ide/issues/new?labels=type%3A+imperfection&template=bug_report.md