How to minimise muscle loss while injured?

heyo, ive cooked my wrist and been advised not to lift heavy weights for a while. was wondering should i be aiming to maintain my calories with enough protein or would having lower cals with high protein lose more fat than muscle if im not working out. tia