Second-order ZFC is nearly categorical, except that it does not determine the 'height' of the cumulative hierarchy (intuitively speaking). However, additional axioms can be added to second-order ZFC to provide a categorical axiomatization, e.g. specifying that there are no inaccessible cardinals (or that there is exactly one, etc); see this previous answer for details on this background assumption [1]. However, once a particular maximum level has been specified for the cumulative hierarchy (by an additional axiom), does this risk creating an inconsistency with the axiom of replacement, since the range of a function (used in replacement) could potentially include sets arbitrarily high up in the stages of the cumulative hierarchy (where the height of the hierarchy has been fixed by the maximum inaccessible cardinal specified in the added axiom)? Admittedly, this is arguably already a problem for the iterative conception of sets even without an additional axiom, but I'm wondering if it's particularly problematic when an axiom is added (to achieve categoricity) which 'arbitrarily' restricts the height of the cumulative hierarchy (so that a set created by replacement which exists at some level of the hierarchy, does not exist in the 'cropped' hierarchy determined by the new axiomatization)?
[1] What axioms need to be added to second-order ZFC before it has a unique model (up to isomorphism)?