Unable to initialize fleet v8.5

I upgraded from 8.4 to 8.5 and now getting this error

sometimes this error disappears and I am able to see the listed agents and got to somehow update the integrations in fleet server policy but this endpoint integration which is now elastic defend is stuck at this phase