Error encountered when yuzu started the game

I have installed the key and firmware, but I encountered this error when starting the game.

In order for us to provide better support, we need to see the log generated by yuzu. This guide will walk you through how you can obtain the log file: Getting Log Files - yuzu

you were linked a guide in the error. You’ll have to properly play your games on console before you dump your files from nintendo switch. Or you will get issue.

This game was given to me by a friend. This game can run normally on a friend’s yuzu

You’d be expected to dump it from your own console. Your friend sharing it to you is the same thing as piracy sadly.