Huge amount of notifications - Cannot open list to clear them

My HA was left running without internet connection for 10 days. This generated more than 15k notifications on my notification panel. Now it takes “for ever” for it to open and when it does, it takes “for ever” to scroll down to the bottom and click the “clear” button.

Despite being called “persistent” notifications, they are not persistent. A restart will clear them.