Rig flipping when exported as FBX

So I’ve been having a lot of issues with exporting an insect that is rigged and animated, however when I export it as an FBX file, the left leg bones are flipped upside down and the animation gets misplaced somehow.
I have tried a few troubleshoots such as changing some export properties and making sure the bones are orianted properly and transforms are reset, but I have not found a solution yet.

Also When I import the FBX file I get error code in the info log. I can’t really read python but someone might know what it means:

Python: Traceback (most recent call last):
File “C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx_init_.py”, line 207, in execute
if import_fbx.load(self, context, filepath=path, **keywords) == {‘FINISHED’}:
File “C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\import_fbx.py”, line 3109, in load
_(); del _
File “C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\import_fbx.py”, line 3106, in _
root_helper.link_hierarchy(fbx_tmpl, settings, scene)
File “C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\import_fbx.py”, line 2597, in link_hierarchy
child.link_hierarchy(fbx_tmpl, settings, scene)
File “C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\import_fbx.py”, line 2553, in link_hierarchy
(mmat, amat) = mesh.armature_setup[self]
KeyError: Crawler_Skeleton

Here are the blender files if you want to look into them or troubleshoot them as well. Hopefully someone is able to help :smiley:

Here are the files
https://drive.google.com/drive/folders/1N2e-BzUUnob51ytIJR82PUtqxAk64OtF?usp=sharing