Hi @valkyrie2811 ,
Welcome to the forum..
Could be a few different things..
You don't give allot of information..
If it's Windows then possible that a recent os update changes your drivers..
Look here first, see if it helps..
else need more info..
happened too me a few weeks ago, windows 11 and a esp32cam..
i got "a device attached to the system is not functioning properly" something like it anyways..
downgraded my driver and i was coding again..
good luck.. ~q