Hello,
please try to use the STM32CubeProgrammer - there is an option to erase the entire Flash.
If this is still not successful, let me recommend to check the ST developer forum - as this issue is not related to GUI development with Embedded Wizard.
Best regards,
Manfred.