Serial monitor works when uploaded from Arduino IDE, but prints gibberish when uploaded from PlatformIO

Even when I choose to print an empty string, it still prints out the same characters over and over.

It seems that there is something wrong when the upload process starts.