We would love to know what is the firmware that you’re trying to flash. Is it something you programmed, is it an algorithm that you found online, or are you following a tutorial somewhere?
And tell us more about the pedal itself too since you mentioned a display. Is it something you designed or did you reference a pedal platform that a community member designed like this one?
So this sounds like you flashed the Daisy Bootloader somewhere along the way.
That explains the following error and why you can flash without pressing the buttons: