I have the same problem. At first i thought it was some internet problem side, however EA has been having this issue from at least 2 years ago, with hundreds of posts from multiple users with this problem. All EA agents do is tell you its your internet. But its not. Every user reporting this same problem knows Apex is the only game we get packet loss.
The first time i encountered this problem i switched the port in which the ethernet cable was plugged in to another one, and it seemed to fix it. Now the problem is back again and the same fix wont solve it.