How can I create a generic ActorComponent?

You don’t.

It’s not supported (nor probably possible) to exchange dll’s between projects.

Copy your code from one project to another.

Otherwise, you may try to create a new Engine-level module or plugin out of the code shared by the projects: