Hi Alex, we have been having the same issue with the Calendar and upcoming events block. Your issue may be related to mine, I've raised a ticket and proposed a fix, if you want to give it a bash.
https://tracker.moodle.org/projects/MDL/issues/MDL-72533
https://tracker.moodle.org/projects/MDL/issues/MDL-72533