Audacity keeps giving me this error; Error opening sound device

I have tried re-installing audacity and changing the sample rate but nothign works, does anyone have a fix for this

“timestamp”: 1671062336,
“event_id”: “42f3b74c57c84ff988b6037f83150c81”,
“platform”: “native”,
“release”: “audacity@3.2.2”,
“contexts”: {
“os”: {
“type”: “os”,
“name”: “Macintosh”,
“version”: “10.16.0”
“exception”: {
“values”: [
“type”: “Error”,
“value”: “Error opening sound device.\nTry changing the audio host, playback device and the project sample rate.”,
“mechanism”: {
“type”: “runtime_error”,
“handled”: false

What output device are you trying to use?
– Bill

External headphones, but it gave me that error when i used normal speakers too

i reinstalled audacity again and its working fine, ill tell you if it starts giving me the error message again

Audacity can lose devices if they are plugged or unplugged while Audacity is running. Typically Transport > Rescan Audio Devices will find them again.