I've never seen a notification that lights up the entire screen yellow. Sounds like you have that same bug that a lot of others have done. If my entire screen lights up yellow, I'd be contacting a service center.
Thank you for reaching out. It seems that flash notification may be turned on. To change this setting go to Settings>Accessibility>Advanced Settings>Flash Notification. From here you can toggle on and off the feature for screen flash or camera flash.
Let me know if this helped!