"Error parsing YAML" in Obsidian Tracker

I’m trying to set up a habits tracker using the Tracker plugin, but it seems to be glitching in a very weird way. If I’m using the live preview mode, I can type in everything in the code block and when I move to another line I can see the calendar I set up working perfectly; but as soon as I switch to reading mode, the calendar is replaced with a “Error parsing YAML” message.

I screen recorded to show what exactly is happening right now, and in the video you can also see my code block: