Solution
This error occurs when a .NET application or code of version higher than version 4.8 calls the NI-DAQmx library. This is because we currently only support the .NET Framework, i.e., up to .NET 4.8.
Support for .NET 5 and above, i.e., .NET Core is on the roadmap for 2025.