Modelling self-healing magnetic textures in hydrodynamic bearings