Background process suddently ends.

Perhaps this is relevant Background job every 5 seconds - #2 by divyeshlakhotia

The only solution to this is to either upgrade your anvil subscription or host your own anvil uplink which runs forever. (I chose the latter)