"General relativity suggests that objects with mass cause the warping of spacetime, the four-dimensional unification of space and time, with gravity arising from this curvature."
I believe and evidence supports that massfields create non-Euclidean geometry in space-time,
notably time-dilation AND space contraction.
Gravity which involves an actual acceleration energy interchange is a mechanical byproduct of that non-Euclidean geometry but doesn't arise directly from it.
Light can not accelerate, period.
Light can only follow the geometry of space-time which entails zero energy exchange.
Light follows pure vector inertia and nothing else.
Which is why light's trajectory is geometry or mass lensing and has nothing to do with gravity.
But parrot academic dogma and don't use your brains, which otherwise could damage your career.