The easiest way to keep the shape of the nut and rise it is to put a veneer below the nut.
I was told a hard impact to the side of the nut (and only the nut!) looses it (never tried this myself).
But to test it before you remove the nut you can put a piece of cardboard between string and nut. Just make sure that it doesn’t move when tuning up.
And you don‘t have to glue the nut back during the testing. The string pressure usually keeps the nut in place.
Shim height below the nut can be tested with layers of cardboard too.
I was told a hard impact to the side of the nut (and only the nut!) looses it (never tried this myself).
But to test it before you remove the nut you can put a piece of cardboard between string and nut. Just make sure that it doesn’t move when tuning up.
And you don‘t have to glue the nut back during the testing. The string pressure usually keeps the nut in place.
Shim height below the nut can be tested with layers of cardboard too.