I don’t know if this will help.
Since ChirpStack 4.7, we need to run the below commands to migrate session keys from Redis to Postgres.
Then the devices will be back to life with device sessions.
Device-session migration
This release moves the device-session storage from Redis to PostgreSQL. After upgrading, you must execute the following command (adapted to your environment):