Deploy Kafka streams app post downtime

Hi Team, we have a usecase where the kafkastreams app might be down for a week or so, until next deployment, and when trying to redeploy after that downtime, we see a lot of InvalidTimestamp exceptions and the app fails to recover. Is this an expected scenario? We have tried out a bunch of settings on the cuber threads and number of apps. Are there any settings that might help with this situation? Or any code changes that we should consider?

org.apache.kafka.common.errors.InvalidTimestampException: One or more records have been rejected due to invalid timestamp