The issue is that you are trying to call functions on a UClass instead of on a spawned actor. You get that spawned actor pointer from the return value of the SpawnActor method (my example). That is what you need to call FindComponentByClass on.
[BP] Whats the difference between variable of class and object?