In Settings | Keymap, check if you have assigned any shortcut for the “Close All Tabs” action and triggered.
If not, the problem may be caused by IDE errors. Rider reloaded the project due to some exceptions. You could contact Rider support in Help | Contact Support and provide IDE logs for further investigation.