Issue restarting HA 'address in use'

Hi, since a few weeks my daily restart of HA goes pearshaped once in a while, 1-2 times per week and the log shows below. The only resolution is to restart the container.
I also noticed the same message on my DEV container whilst manually restarting HA, which is on port 8124…i.e. the DEV container error also refers to port 8123 which makes it extra odd (for me)
Any chance one of you have seen this before or know how to analyse or fix this?

EDIT: both main as dev container run in parallel all day long

ERROR (MainThread) [homeassistant.components.http]  Failed to create HTTP server at port 8123: [Errno 98] error while attempting to bind on address ('0.0.0.0', 8123): address in use

Put the containers in bridge mode, and let each one have their own IP address ?

Thanks for responding.
My main container is on host as I needed that to make things work (forgot what it was a 2y ago). The dev container is on bridge.
I am just puzzled why this started only a few weeks ago, I cannot be 100% sure but seems to be after 2023.12 (guessing a lot here).
And why does it only happen via a HA-driven restart , either manually or using service call, could it be that other processes keep running?