No more sound after disconnecting headphone

Normally I use a Bluetooth headphone.

The headphone connects and I have no problem with sound,

I can disconnect my headphone and sound comes out of my speakers… perfect no problem.

When I use the computer, then Bluetooth stays connected and I have no sound issues.

The problem appears when I don’t use my computer and the system goes in suspend-mode. and my headphone shutdown automatically.

Or when I only listen to music with my headphone but don’ t use the computer.

If my system comes out of sleep/suspend-mode then I can’t play music anymore.

Not from speakers or headphone.

after a few seconds this message appears:

../gstreamer/subprojects/gst-plugins-base/gst/playback/gstplaysink.c(2961): gen_audio_chain (): /GstPlayBin3:pipeline-4-pipeline/GstPlaySink:playsink: Failed to configure the audio sink.

The only thing I can do to make it work is:

systemctl --user restart pipewire wireplumber

Can someone point my in the right direction how I can find what is wrong?