Carbimazole has disadvantages on different body organs, especially the thyroid gland and, rarely, the adrenal glands. Most studies have not suggested any solution or medication for ameliorating the noxious effects of drugs on the glands. Our study focused on the production of xylooligosaccharide (XOS), which, when coadministered with carbimazole, relieves the toxic effects of the drug on the adrenal glands. In addition to accelerating the regeneration of adrenal gland cells, XOS significantly decreases the oxidative stress caused by obesity. This XOS produced by Aspergillus terreus xylanase was covalently immobilized using microbial Scleroglucan gel beads, which improved the immobilization yield, efficiency, and operational stability. Over a wide pH range (6–7.5), the covalent immobilization of xylanase on scleroglucan increased xylanase activity compared to that of its free form. Additionally, the reaction temperature was increased to 65 °C. However, the immobilized enzyme demonstrated superior thermal stability, sustaining 80.22% of its original activity at 60 °C for 120 min. Additionally, the full activity of the immobilized enzyme was sustained after 12 consecutive cycles, and the activity reached 78.33% after 18 cycles. After 41 days of storage at 4 °C, the immobilized enzyme was still active at approximately 98%. The immobilized enzyme has the capability to produce xylo-oligosaccharides (XOSs). Subsequently, these XOSs can be coadministered alongside carbimazole to mitigate the adverse effects of the drug on the adrenal glands. In addition to accelerating the regeneration of adrenal gland cells, XOS significantly decreases the oxidative stress caused by obesity.