My plugin won’t change your SVG, but ok.
Would love to know what the actual issue was. Don’t use the sanitisation if that is the issue and you trust the SVG code/it’s yours. You can upload it as is. You might need to outline any text and expand any objects too, that can cause display issues if you leave that. Treat it like sending to print.