RMS and power factor are hard to measure with non sinusoidal and complex impedance loads.
RMS meters won't come to the rescue in these situations.
You need a measure of crest factor as well.
Luckily, you can do this in software.
Measure the Peak and RMS, CF = XPEAK ÷ XRMS , this applies to both the voltage and current waveforms.
/www.electricalvolt.com/2020/03/what-is-crest-factor-or-peak-factor/
"If the peak current is too high, the metering CT inputs can clip, causing inaccurate readings.This means that when measuring loads with high current crest factors, CT current rating needs to be selected considering crest factor of the load. For example, if your load draws 15 amps RMS, but has a crest factor of 4.0, then the peak current is 60 amps. If you use a 20 amp CT, the meter will not be able to accurately measure the 30 amp peak current."