When I try to take a photo in the game I built, the game crashes.

I created a photo capture widget in the game. It works without issues in the project files, but after building the game, it crashes with an error.

My graphics card drivers are up to date, and I also applied the solution I found online in the image, but the result didn’t change.

I also set the game settings to the lowest level, but it still crashes.