I was experiencing this exact problem myself.
The simplest way I've found to fix it is by going into Generation 9 Scripts folder, opening Settings.rb in notepad and changing "RESTORE_ITEMS_AFTER_BATTLE = true" to "RESTORE_ITEMS_AFTER_BATTLE = false"
This gen 9 gamerule calls on a bunch of...