You don't give us much to help you out. At a high-level, if you keep being replaced, it means the perception is that you are not adding value. So I need to ask an honest question: as the PM, do you think you were providing value to the project? Are you sure?