Debugging BPM with 10.2.700.9 crashes w3wp.exe process

I’m currently trying to debug a BPM, but when I try to attach to the w3wp process it instantly crashes:

I also get an error “A process serving application pool ‘instance’ suffered a fatal communication error with the Windows Process Activation Service.”

I’m using VS 2019, should I use 2017?