Instagram has a Dark Mode, but it generally applies to the whole app rather than just DMs. You just have to change the settings.
Go to Settings, select Display & Brightness and then choose the Dark option. Instagram’s own settings can vary by app version, so if you see an Appearance option in Instagram, you can enable Dark Mode there instead. Unfortunately, there isn’t normally a setting to make only your DMs dark while keeping the rest of Instagram bright.