Capacitor protection in transformerless power supply
You are trying to use a transformerless power supply beyond the techniques capabilities. Typically a TPS would be used to supply a maximum of a few tens of mAs with a dropper capacitor value of 220n, 470n or occasionally as high as 1uF. With a current of 150mA and a typical value for the series resistor of 820R the resistor will dissipate about 20W. With 820R the peak capacitor charge current at switch on is about 339/820 = 0.5A.