Another way to handle this (I think this is how Vampire Survivors does it) is that if the pickup gets too far away from the player, it despawns and the value gets added to a "bonus" pool. Then when you beat a boss (or just the next enemy) that bonus value gets added to the new pickup. That way nothing is really wasted sitting 20 screens away from the player.