pkg: cached package .... size mismatch, cannot continue
You can try any one of these:
pkg clean # cleans /var/cache/pkg/
rm -rf /var/cache/pkg/* # just remove it all
pkg update -f # forces update of repository catalog
rm /var/db/pkg/repo-*.sqlite # removes all remote repository catalogs