abyaadrafid answered on it there on May 30:
!apt install xvfb -y
!pip install pyvirtualdisplay
!pip install piglet
from pyvirtualdisplay import Display
display = Display(visible=0, size=(1400, 900))
display.start()
using pyvirtualdisplay fixed it for me.