Dozens of staff at King Charles’s former residence told they could lose jobs