Only machine-wash footwear if its own manufacturer permits it and the appliance instructions allow the relevant treatment. Different uppers, adhesives and soles can react differently.
Understanding this situation
A trainer is not equivalent to a small cotton garment. Its weight and hard parts can change drum movement and create repeated impacts, and a care label may prohibit both washing and heated drying.
A useful next step
Check the specific footwear instructions and remove components only as directed. If permitted washing has caused unusually violent movement, stop and reassess rather than adding random items to force a balance. Do not use a hot cycle to compensate for persistent odour.
Manuals and supporting guidance
Model-specific instructions take priority. These references support the practical principles discussed here; they do not diagnose your appliance.