Just fitting doors myself. Most doors will have a strip of solid wood around the edges. The ones I bought had 8mm.
You can trim the width of the door to fit a gap, but you shouldn't take any more than 4mm from each side according to the manufacturer's recommendation (Howden in my case).
However, I've had to, in a couple of cases, take significantly more. I used a circular saw with a guide to remove the 8mm solid wood in one piece, then cut off the extra I needed from the "core" of the door, then used PU glue to refit the solid 8mm wood back on the door. The doors are now hung and working well.
This approach is easier than removing the architrave and wood behind and replacing all that IMHO