Retroarch freezes randomly because of controller

Hi im on 1.6 and whenever I launch Retroarch, and randomly throughout retroarch being open Retroarch will freeze for 30 seconds. It freezes on this:

RetroArch [INFO] :: Enumerating DInput joypads … RetroArch [INFO] :: Device #0 PID: {09CC} VID:{054C} RetroArch [INFO] :: Device #1 PID: {028E} VID:{045E} RetroArch [INFO] :: Device #2 PID: {09CC} VID:{054C} RetroArch [INFO] :: Device #3 PID: {09CC} VID:{054C} RetroArch [INFO] :: Device #4 PID: {028E} VID:{045E} RetroArch [INFO] :: Done enumerating DInput joypads … RetroArch [INFO] :: [Joypad]: Found joypad driver: “xinput”.

It seems to be checking the controllers which causes it to freeze. Its starting to get frustrating having the game freeze every couple of minutes. I’ve used and XOne controller, and a DS4 controller and I still get the issue. I’ve also tried reinstalling my controller’s drivers. Im not sure what else to do.