(Delegates) AddRaw() Error after upgrading to UE5.1

You need to fix the engine code errors first.

Try this:

Hopefully that will fix your engine errors. Did you migrate your project using Unreals migration tool?