Neo4j upgrade from 4 to version 5 causing problem in API

Hi,

I want to upgrade my Neo4J version 4.4.23 to 5.14.0. I have two environments on AWS with almost same configuration. I have successfully upgraded and migrated Neo4J from 4.4.23 to 5.14.0 on one environment and it is working fine but on second environment after upgrade and migrate I'm facing some errors/problem in API service(which is in java spring boot).

It is showing below errors in API logs,

,972Z | ERROR | http-nio-8085-exec-9 | com.xyz.core.api.rest.controllers.ControllerBase   | correlationId:************ | CATCHALL - API request processing error thrown for request: uri=/API/project/project_guid/responsibleOrganisationsWithPerson;client=127.0.0.1;user=user_id 
org.springframework.dao.NonTransientDataAccessResourceException: Expected positive long value, got -32; Error code 'Neo.DatabaseError.Statement.ExecutionFailed'; nested exception is org.neo4j.driver.exceptions.DatabaseException: Expected positive long value, got -32
	at org.springframework.data.neo4j.core.Neo4jPersistenceExceptionTranslator.translateImpl(Neo4jPersistenceExceptionTranslator.java:107)
	
,507Z | ERROR | http-nio-8085-exec-6 | com.xyz.core.api.rest.controllers.ControllerBase   | correlationId:************* | CATCHALL - API request processing error thrown for request: uri=/API/project/project_guid/locations;client=127.0.0.1;user=user_id 
org.springframework.dao.NonTransientDataAccessResourceException: Expected positive long value, got -9600; Error code 'Neo.DatabaseError.Statement.ExecutionFailed'; nested exception is org.neo4j.driver.exceptions.DatabaseException: Expected positive long value, got -9600
	at org.springframework.data.neo4j.core.Neo4jPersistenceExceptionTranslator.translateImpl(Neo4jPersistenceExceptionTranslator.java:107)
	at org.springframework.data.neo4j.core.Neo4jPersistenceExceptionTranslator.translateExceptionIfPossible(Neo4jPersistenceExceptionTranslator.java:71)
	at org.springframework.data.neo4j.core.DefaultNeo4jClient.potentiallyConvertRuntimeException(DefaultNeo4jClient.java:233)
	at org.springframework.data.neo4j.core.DefaultNeo4jClient.access$600(DefaultNeo4jClient.java:62)

Can anyone please help me with this?

Thanks.