Hello @leo-ninja-turtle
the IR unit has two modes: NEC and GPIO. By default the IR unit is added in NEC mode, however the block ir_0 state is part of the GPIO mode - hence the error.
Try switching the mode to GPIO by clicking on the IR unit and then use the Mode drop-down menu.
Thanks
Felix