Hey Flash,
I was able to reproduce this in 8.2.0 Singleplayer.
Can confirm this gets rid of the Ditto's special form after the battle & also triggers the copied Diguise Ability Mid-Battle.
According to my Pokemon-Knowledge, Imposter Ditto can not copy abilities that change forms, i.e. Zygarde Complete, ZenMode Darmanitan et cetera, and the same applies to Mimikyu (also tested on Showdown & saw it doesn't work in the games), therefore this is a bug.
This does not seem to happen while battling other pokemon that have an ability which adds form-changes mid-battle in pixelmon aswell, i.e. Zen-Mode Darmanitan.
In this case the Ditto does not change form mid-battle & also doesn't lose it's special form after the battle.
More detailed info in the second part of the ticket:
https://pixelmonmod.com/tracker.php?p=2&t=16204Marked as "Awaiting move to internal"!
Sincerely, NotKili