Scoreboard. How to remove Objective from the player?

If you use BungeeCord, if you update the Scoreboard of player after the respawn, an error occurs.
An error appears in the BungeeCord console. https://pastebin.com/zxFYwSiT
It turns out that when updating I need to first clear the Objective field from the player, but I can’t figure out how.