SDL2.dll block when turn on joystick

After installing Retrobat 5.1.1 software containing your latest version of SDL I am having problems with crashes as soon as I turn on my joystick.
I was told by the developers that this is due to SDL2.dll.
Indeed replacing the recent version of SDL with an older one (already used in Retrobat 4.0.2 in 10/07/2021) the crash no longer occurs .
If it really is an SDL problem could you please fix it so I can use your latest version of SDL?
What could I do to contribute?
If it helps, I could send you the debug log file.
Here you can find my conversation in the retrobat forum: