Error pops up every time when launching the "UiPath Assistant" app - Invalid token specified: Cannot read property 'replace' of undefined

You should consider upgrading your Orchestrator (to 2022.4.3 or 2021.10.7) as in less than 2 months it will be out of support.

https://docs.uipath.com/overview-guide/docs/product-lifecycle

Then you can upgrade your Robot also (2022.4.5 or 2021.10.8)