- Are you using STM32CubeProgrammer to upload your sketches?
- Is your serial monitor an ArduinoIDE with USB connection?
- Is the ST-Link a genuine ST-Link? Is it a Chinese clone?
Without knowing the details of your setup, I am clueless.
Without knowing the details of your setup, I am clueless.