In picture number 3 the two small caps, usually 1nF cause some current to flow to ground, and is typical of a VFD.
A VFD is best connected to a fused circuit that does not have an earth leakage detector. The caps are intended to stop EMI going out the power lead.
If you can't use a supply circuit that has no leakage detection, then powering through a 1:1 isolation transformer will solve it. But hey, a 2.2KW transformer is HEAVY.
Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.