It was obviously the hosting, I also had problems with cron, it was also not working and behaving strangely, but after a few days it seems to be ok.
Support said they would fix it for me but it was obviously a mistake on their end because I didn’t update or change anything and it started working.