This is happening because when app is starting on a higher environment, it is triggering as MultiTeams App instead of SingleteamApp. All you need to do is to initiate the App with null clientId and Secret.
AppConfig config =
AppConfig.builder()
.clientId(null)
.clientSecret(null)
.singleTeamBotToken(botToken)
.build();
This should solve the issue.