To change the custom namespace update the autoload psr-4 variable in composer.json file. Update all the files wherever the namespace is included. And make sure to run the following command:
composer dump-autoload
I hope this works for your problem.