Hi Alexander,
As far as I know , these the fixes you will made in next February release:
Fix bugs when converting from and to GeoPackage format.
Make a copy operations when source and target formats are the same. …...conversion we create and write new vector layer and get this exception...