On Forge, you can execute a command with a specific PHP version (assuming that version is installed) using:
php7.3 artisan make:media
Obviously, something has fallen out of sync between the FPM and CLI versions that are running by default, so you could see if it is possible for Forge to reset the default PHP version in the PHP configuration page for the server.