Grub error

When I try installing a grub theme, I am getting an error:

 Checking for the existence of themes directory... 
  
 Installing tela color 1080p theme... 
  
 Setting tela as default... 
  
 Updating grub config...
 
Generating grub configuration file ...
/usr/sbin/grub2-probe: error: failed to get canonical path of `/boot/efi/EFI/fedora/fonts/unicode.pf2'.
No path or device is specified.
Usage: grub2-probe [OPTION...] [OPTION]... [PATH|DEVICE]
Try 'grub2-probe --help' or 'grub2-probe --usage' for more information.
Generating grub configuration file ...
/usr/sbin/grub2-probe: error: failed to get canonical path of `/boot/efi/EFI/fedora/fonts/unicode.pf2'.
No path or device is specified.
Usage: grub2-probe [OPTION...] [OPTION]... [PATH|DEVICE]
Try 'grub2-probe --help' or 'grub2-probe --usage' for more information.

It seems that the installation script comments out GRUB_TERMINAL_OUTPUT=console
in /etc/default/grub, and this cause an issue when updating the grub.
When I uncomment the option, the grub updates as usual
( sudo grub2-mkconfig -o /etc/grub2.cfg

sudo grub2-mkconfig -o /etc/grub2-efi.cfg)

Thank you