No reason why it shouldn't work or at the very least it shouldn't be crashing Duckstation.
Have you tried uninstalling Avast?
Here something you can try, start Duckstation without the gamepad connected, go into settings and in the general tab I think look for "Controller Backend" by default it should be SDL, switch it to dinput, close Duckstation to save the settings, connect the controller and start Duckstation to see if it works, if not again disconnect the controller start Duckstation and switch"controller Backend" to xinput.
YOU ARE A ANGEL!!!! AFTER ALL THIS TIME, THE DAMN THING WORKED!!! I can't believe it was just this stupid setting that I needed to change . Just one thing: in the controller settings, which option should I choose: Analog Controller (Dualshock) or Analog Joystick?