@androidonpi The errors appears because you're running RetroPie from the desktop environment. As @dankcushions mentioned, this is not a supported configuration. On the Pi4, drastic will run by starting an X server first (as a few other ports already do), if you're already running in a desktop environment, that won't work.
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first