Optimize output size of kpm pack

parent #652 
We never throw Exception always InvalidOperationException, though this feels like InvalidDataException