FATAL Error: Unable to complete saved object migrations for the [.kibana-7.17.1-ssl] index: Unable to complete the UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK step after 15 attempts, terminating

Dear Team,

I have an issue relative to restarting Kibana. Every time I have this issue, I have to delete the .kibana* index and start again, but I don't want to delete the .kibana* index because of data loss.
Also, I don't search in discovery menu after starting kibana successfully.

So please help me to check what is the root cause?

Log and config of kibana and elasticsearch are linked below