Working correctly on Blender 3.5. Be sure, if you are using 'selected bones' export option and experiencing crashes when exporting, to use Pose Mode and select the bones you want to export from there. If the selection is empty, then it'll give error.