The usual HackerNews advice here is something like find a way to commit a few hours a week to LeetCode.
That does probably depend on whether you're doing greenfield work or not, but even then these costs are there but just not immediately visible.
Curious: what did you switch to?