CAN-Bus Issues. Need to restart once in a while.

Hi! I’m having some issues with CAN using Waveshare CM4-IO-Wireless base and a compute module 4. The CAN is working initially but after a while it stops working then i need to do the following commands to make it work for a while again:

ip link set can0 down
ip link set can0 up

Docker-compose file:

Heater:
  build: ./Containers/Heater
  network_mode: host
  privileged: true
  cap_add:
    - NET_ADMIN

Would it be possible for the host to always have CAN enabled from start as a fleet wide option set in balena perhaps? Instead of the container making the changes?

I have another device using the same hardware but with standard raspberry pi os and there’s no issue with CAN there.