UsageFault after returning from xPortPendSVHandler after sending a notification

An easy way to figure out whether we are barking up the right tree is to temporarily reset the priorities to lowest and see if that solves your problem.