You probably have a bad lightning cable. Swap it and your accessory not supported message will be no more.
As for the archive button, I'm not sure what the issue is. If you want it to be trash instead, you can change that in settings. Mail, Contacts, Calendard -> the account -> advanced -> "move discarded messages into" setting