Is the bike an eMTB used offroad and done 2,000km on the same chain and cassette?
If so then the chain might have worn past the normal replacement point (0.5% stretch) and progressively damaged the cassette, so in this event it is time for a new chain and cassette.