In order for you to access the Pit of Heresy, you need to own Shadowkeep, as the dungeon is tied to the DLC.