We present photometric and spectroscopic observations of SN 2020xga and SN 2022xgc, two hydrogen-poor superluminous supernovae (SLSNe-I) at z=0.4296 and z=0.3103 respectively, that show an additional set of broad Mgii absorption lines, blueshifted by a few thousands km s~1 with respect to the host galaxy absorption system. Previous work interpreted this as due to resonance line scattering of the SLSN continuum by rapidly expanding CSM expelled shortly before the explosion. The peak rest-frame g-band magnitude of SN 2020xga is ~22.30+/-0.04mag and of SN 2022xgc is ~21.97+/-0.05mag, placing them among the brightest SLSNe-I. We use high-quality spectra from ultraviolet to near-infrared wavelengths to model the Mgii line profiles and infer the properties of the CSM shells. We find that the CSM shell of SN 2020xga resides at ~1.3x10^16^cm moving with a maximum velocity of 4275 km s~1, and the shell of SN 2022xgc is located at ~0.8x10^16^cm reaching up to 4400km/s. These shells were expelled ~11 and ~5 months before explosion for SN 2020xga and SN 2022xgc respectively, possibly as a result of Luminous Blue Variable-like eruptions or pulsational pair instability (PPI) mass loss. We also analyze optical photometric data and model the light curves considering powering from the magnetar spin-down mechanism. The results support very energetic magnetars, approaching the masss-hedding limit, powering these SNe with ejecta masses of ~7-9M_{sun}_. The ejecta masses inferred from the magnetar modeling are not consistent with the PPI scenario pointing towards stars >50M_{sun}_ He-core, hence alternative scenarios such as fallback accretion are discussed. Modeling the spectral energy distribution of the host galaxy of SN 2020xga reveals a host mass of 10^7.8^M_{sun}_, a star formation rate of 0.96^+0.47^_-0.26_M_{sun}_/yr, and a metallicity of ~0.2Z_{sun}_.