Void Years Question - Myles Garrett Related

Can someone please explain to me how void years work in NFL contracts if the player is traded? On Spotrac, it says the Browns are going to take a cap hit for Garrett until 2030, with the number starting at $38M (!!!) in 2027 and falling to $5M in 2030.

If Myles is traded, does the team acquiring him eat that void money, or does that stay with the Browns? If the former, what happens if he's extended? Do the void dollars wash, or is it additive? I would imagine the Browns would still have to take that cap hit, but wanted to make sure.