Not being thin-skinned is also useful since interesting personalities, rude people is not uncommon. Perhaps not all are psychopaths, but it feels awful when we are mistreated.
You mentioned that AI will replace frontend and backend SWE entirely, should I still continue learning programming languages for backend and learning frontend web framework like React? Or just make a switch to learn AI/ML?
as per my opinion do it parallelly , keep AI / ML elements in your projects always , and also think these are all statistical models meaning they are as good as data, so think differently to problems