Alright, I have a solution, more of a workaround and not the best one, but it works for me, I used MacroDroid to dismiss that window automatically. I'm using Photos v5.52.
Application Launched (Photos) > Wait 750 ms, Repeat 7 times{Click[com.google.android.apps.photos:id/negative_button], Wait 100 ms}
It's the UI interaction action and identify in app function.
Didn't find any other solution.. tried LuckyPatcher to change some components, detaching from store, XprivacyLua, but no luck.
Macro here: http://bit.ly/3HAHwBc