When adding a second monitor the built in doesn't work right

I tried plugging in a second monitor to my laptop. When I did the built in monitor had issue with trailing on windows and some open windows just kept flashing over and over again. I am running an AMD Ryzen 5 it's a lenovo Ideapad 3. Anyone else have issues with this?