The issues was building the package on a cloud drive.
The issue was resolved after moving the folder to a drive on my local machine.