Neovim blacking out in termux after unfocusing window

I am using Neovim in Termux (on Android) and I am trying to use the Copilot plugin. But when I unfocus the window when trying to type the code, neovim blacks out. why is this happening?