In Discord settings, navigate to the "Overlay" section and disable the overlay for Apex Legends.