I question the narrative - is this a product development post, or a poor man's solution soliciting help with our pity?
OP has firmware to write, a HV enclosure, heatsinks, parts costs, regulatory risk... and that's false economy.
A proportional PID controller is $10, 4kW triac phase-controller $2, on eBay or Ali.
Compare to $1,000+ in engineering design work... when a high/low heater is all that is needed.
It feels like manipulating the community to get design help on something, related to mains transients on LED lighting....