fastboot – Boot image header fields are invalid

I want to install TWRP on Redmi 5 (Rosy), during installation everything works normally. But when I want to boot into TWRP,

fastboot boot TWRP.img

a failure message appears on the ADB command line.

FAILED (remote: bootimage header fields are invalid)

Previously I was on the EU MIUI Custom ROM. All happened after I tried to flash the MIUI 11 Global firmware