Can't Package Project in Unreal Engine 5.4.4

Go to your project folder and open the file .uproject with Notepad

Remove any unused module like UMGEditor (if you are not using it)