As I remember it, you really shouldn't be using both at the same time. Don't remember why, only that it's a bad idea. And you can set up uBlock to do most of what uMatrix does anyway.
What I did was disable the overlapping functionality in uBlock Origin, and let uMatrix handle the rest.