I think @Nysse mentioned a valid point. The STM32 board selected in the IDE is different from which you are using. You’re have connected STM32F407G board to your PC but you have chosen STM32L433RCT chip in your IDE. You have to create a new project with your board/chip.
We have had this problem a while back. I didn’t get to the bottom of the issue, but installing the latest version of Cube IDE fixed it for me and another of our engineers