Stiff wobbles after switching from loiter to rtl

Could it be the wind?

I think you are missing the point.
Good luck

I realized that the main point was the pid problem. But I was wondering if there is another problem

thanks have a good day