Can you please compare first your files(Ex: - Service Packs, any custom
files) between lower environment (Ex:- Local Instance where its working
fine) and higher environment to check for any mismatch. Also please
check for logs(AEM and Console Logs) that is able to give you any
meaningful information about why it is failing.