FBX exporting broken

I need to export my rigged model in fbx, but unfortunately there are issues.

Here you can see the problem. The left one is the original and the right one is the export. Textures are not an issue. You can see weird unnecessary bones with names that end with “_end”. Some vertex groups are missing in the export, and you can see these weird scales in the bones.

All animations look like this, I don’t know if it’s intentional. Naming doesn’t look right either. In one attempt the animation itself was partially broken. Please explain how this can be fixed.