Looks like both errors are coming from sketch-meaxure, which is indeed a bit incompatible with Sketch 97 release (and there's also a bug in Sketch API itself which actually triggers at least one of your errors).
Please refer to this post on Sketch Forum and make sure to checkout the fixed version of the plugin I've linked there. If it still doesn't work, let me know – preferably by posting to the same forum thread.