Some black holes have a ‘heartbeat’ — and astronomers may finally know why