DelegateSignatureImpl.inl errors when using lambdas in Unreal Engine

I am trying to create a plugin for unreal Engine that creates a file in the output folder of the project and when I try to add any functionality to a button on the UI I get DelegateSignatureImpl.inl errors on compile while my code has no issues or errors. Cannot wrap my head around it everything I’ve looked at adresses delegates but my code does not seem to have any issues.

#define LOCTEXT_NAMESPACE "FBlobFileVisualizerModule"

const FName FBlobFileVisualizerModule::BlobFileVisualizerTabName(TEXT("BlobFileVisualizer"));

void FBlobFileVisualizerModule::StartupModule()
{
    UE_LOG(LogTemp, Log, TEXT("StartupModule: Initializing plugin yoyoyoy"));
    FBlobFileVisualizerStyle::Initialize();
    FBlobFileVisualizerCommands::Register();

    PluginCommands = MakeShareable(new FUICommandList);
    PluginCommands->MapAction(
        FBlobFileVisualizerCommands::Get().OpenPluginWindow,
        FExecuteAction::CreateRaw(this, &FBlobFileVisualizerModule::OpenPluginWindow),
        FCanExecuteAction()
    );

    FGlobalTabmanager::Get()->RegisterNomadTabSpawner(BlobFileVisualizerTabName, FOnSpawnTab::CreateRaw(this, &FBlobFileVisualizerModule::OnSpawnPluginTab))
        .SetDisplayName(LOCTEXT("FBlobFileVisualizerTabTitle", "BlobFileVisualizer"))
        .SetMenuType(ETabSpawnerMenuType::Hidden);
    
}

void FBlobFileVisualizerModule::ShutdownModule()
{
    UE_LOG(LogTemp, Log, TEXT("ShutdownModule: Unloading plugin"));
    FGlobalTabmanager::Get()->UnregisterNomadTabSpawner(BlobFileVisualizerTabName);
    FBlobFileVisualizerCommands::Unregister();
    FBlobFileVisualizerStyle::Shutdown();
}

void FBlobFileVisualizerModule::OpenPluginWindow()
{
    UE_LOG(LogTemp, Log, TEXT("Opening Plugin Window"));
    FGlobalTabmanager::Get()->TryInvokeTab(BlobFileVisualizerTabName);
}

TSharedRef<SDockTab> FBlobFileVisualizerModule::OnSpawnPluginTab(const FSpawnTabArgs& SpawnTabArgs)
{
    UE_LOG(LogTemp, Log, TEXT("OnSpawnPluginTab: Spawning plugin tab"));
    return SNew(SDockTab)
        .TabRole(ETabRole::NomadTab)
        [
            SNew(SBox)
            .HAlign(HAlign_Center)
            .VAlign(VAlign_Center)
            [
                SNew(SVerticalBox)
                + SVerticalBox::Slot()
                .HAlign(HAlign_Center)
                .VAlign(VAlign_Center)
                .Padding(10)
                [
                    SNew(STextBlock)
                    .Text(LOCTEXT("WindowWidgetText", "Blob File Visualizer Plugin Window"))
                ]
                + SVerticalBox::Slot()
                .HAlign(HAlign_Center)
                .VAlign(VAlign_Center)
                .Padding(10)
                [
                    SNew(SButton)
                    .Text(LOCTEXT("CreateFileButtonText", "Create File"))
                    .OnClicked(this, &FBlobFileVisualizerModule::OnCreateFileClicked)
                ]
            ]
        ];
}

FReply FBlobFileVisualizerModule::OnCreateFileClicked()
{
    FString DirectoryPath = FPaths::ProjectDir() / TEXT("Output/BlobFile");
    FString FilePath = FPaths::Combine(DirectoryPath, TEXT("output.blob"));

    IPlatformFile& PlatformFile = FPlatformFileManager::Get().GetPlatformFile();

    // Ensure the directory exists
    if (!PlatformFile.DirectoryExists(*DirectoryPath))
    {
        PlatformFile.CreateDirectory(*DirectoryPath);
    }

    // Attempt to create or open the file
    IFileHandle* FileHandle = PlatformFile.OpenWrite(*FilePath);
    if (FileHandle)
    {
        UE_LOG(LogTemp, Log, TEXT("File created successfully: %s"), *FilePath);
        const TCHAR* Data = TEXT("This is some test data to write in file.\n");
        FileHandle->Write((const uint8*)TCHAR_TO_ANSI(Data), FCString::Strlen(Data) * sizeof(TCHAR));
        delete FileHandle;
    }
    else
    {
        UE_LOG(LogTemp, Error, TEXT("Failed to create file: %s"), *FilePath);
    }

    return FReply::Handled();
}