The passcode will protect it. If it’s in lost mode with a passcode you’ll be fine. You already remotely erased it so it’s wiped of your info but still activation locked. Do not remove it from your account in find my, keep it in lost mode. If you have another apple device reset your apple id password for extra security.
Keep them as backups. Then sell them in 50 years when they’re antique.