I tried with your code and it worked well.
But if you have issues for some SPL tokens, I think you need to update Jupiter v6 API.
Jupiter v6 API is already old and you can use new API version.
Please check this link: https://station.jup.ag/docs/.
I tried with this API - "https://api.jup.ag/swap/v1" and it also worked well.
I hope this helps you.