When trying to disable a pack named with an illegal character it kicks you from the server.
Steps to recreate:
Create new world with attached pack
Attempt to disable pack [/datapack disable "file/.zip"]
Get kicked to server list for using illegal characters
Note:
You have to rename the downloaded file with ctrl backspace which gives you an illegal character.