Thanks for your answer, Daniel. I made sure that audio is not routed by remote session, so that wasn't a part of problem. But your suggestion inspired me to check if I have properly working audio input on server and it turned out that not. Audio driver of virtual souncard wasn't installed correctly and Windows didn't see any audio input at all, apparently causing a crash. Reinstallation solved the problem. Butt is working now. Thanks for help!
Crashes on Windows Server 2019