I just figured since it got to grub, BIOS shouldn't be the issue any more.
The system firmware is, practically speaking, always involved until a real OS has loaded far enough to take control of USB devices (the situation is more complex with PS/2 peripherals).
Unless GRUB is doing something weird (which would sadly not be surprising either), the issue suggests that GRUB is receiving a spurious button press event. It's not clear at all why this would happen due to a lack of a keyboard...
In any case, one possible workaround is to use ZFS Boot Menu as the bootloader. The good part is that you get rid of GRUB, but you have manually install it. Other users have reported that it just works with TrueNAS, with the default configuration, so it boils down to placing the EFI executable in the EFI system partition and having UEFI boot to it.
All that said, it's not clear that this would solve your issue, but worth a shot.