It appears to be a bug in Discord. If you do a interaction.response.send_message in your on_submit function, the window behaves correctly. But if you do an interaction.channel.send instead, you get this error.