I am unable to add a comment as i am yet to gain more reputation 😅, hence i am using this section to add my thoughts. The internal circuit of a relay can be seen in the datasheet provided by OEM. If you have the model/make of the relay you can share here.
I have used flyback diode for inductive loads like a brushed DC motor operating at 30V. The flyback diode was connected to the VOUT of motor driver. It definitely protected the motor driver from back EMF which is generated whenever the DC motor is suddenly stopped.
The concept of using a flyback diode is that, it provides a path for the current to flow back into the coils of DC motor. The return current gradually decreases as it flows though the inductive load and hence sudden surge current(spikes) are not impacting any other components.
If the relay you are using does not have any internal flyback diode, then you can consider connecting a Schottky Diode having respective current and voltage rating to that of your inductive load.