It could well be because of this change here .
There’s an open bug here that the 2D team is handling. Basically the PhysicsMaterial2D should always be available independent of whether you have the Sprite package installed or not.