You are using this paper but it contains an error based on it author:
https://erischel.com/
The Category Theory of Causal Models. My MSc thesis in mathematics, supervised by Sebastian Weichwald. WARNING: Contains at least one substantial error (the category $\mathsf{Err}$ is not actually finitely presentable - sorry!).