This probably has nothing to do with FFXIV even if you think it does.
Trial and error until you find the issue. Take your computer to someone else's house and play. Borrow another computer and see if it does it. Replace everything, get a new ISP, get a new router etc. If its been 10 years of this garbage a bit of money spent shouldn't kill you.