UPD: summer 2021.
So now it works more or less. I figured it out how to get a proper PWM signal out of ESP32. There was a mistake on last post where I wanted to use a complement PWM. The algorytm is mush simpler, I just need one PWM channel and second simple polarity switch channel.
The high voltage and power pcb will be ready in couple of days, and after that I'll be ready to work on software part