Why does it discconect when im about to trade in pokemon ultra moon

when im about to trade i get disconcted then the trade disconect on pokemon ultra moon

In order for us to provide better support, we need to see the log generated by Citra. This guide will walk you through how you can obtain the log file: How to Upload the Log File.