Thanks Robin, I hadn’t realised that about Jack’s midi support, when I first setup my keyboard I couldn’t get it working without a2j, although to be fair that was quite a while ago. I’ve now turned off a2j and using seq the midi keyboard and inputs are working fine and I can pass audio to OBS without any crashes.
Thanks for all your help.