This issue references the following Pull Request from the asn1 project on Github:
TritonDataCenter/node-asn1#13
Which is related to the following issue:
markabrahams/node-asn1-ber#9
and already got fixed some time ago.
However, the older version of this asn1 package is still used and so this bug is still present in the current version of sshpk.
Please update the dependencies to a newer version of asn1.