The negative notification numbers happen when you clear a notification either in another tab or some other way.
The count updates, but the list doesn't.
Flarum just subtracts one from the count when you click a notification in the list which ends up clearing a notification that you've already cleared and has already been taken off the count once already, so when you clear all in the list, it goes negative
That's my understanding of it at least.
You can fix with a refresh of the page or with the small refresh icon above the discussions.