Distinct magneto-optical response of Frenkel and Wannier excitons in CrSBr