Xcode crashes when i'm validating/distributing my archived app

I recently pushed a version of the app to Test Flight and there was no issue. And So far I've only made changes on the source code(which successfully builds and runs on the ios simulator) When I try to validate the app, my Xcode crashes and when I try to distribute directly I get the message - You do not have required role or permission to perform an operation

Where as I have all the required permission to distribute as I used the same account to distribute the same app recently and I have an Admin role. I've also tried using the Account Holder details to login and push, but I'm still having the same issue

FYI This is the report i got after xcode crashed while validating.


Translated Report (Full Report Below)

Process: Xcode [84481] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 15.3 (22618) Build Info: IDEApplication-22618000000000000~2 (15E204a) App Item ID: 497799835 App External ID: 863955376 Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501

Date/Time: 2024-04-18 06:45:51.5415 +0100 OS Version: macOS 14.4.1 (23E224) Report Version: 12 Anonymous UUID: 749F8B88-FA5B-8812-56EC-0E897890F6AC

Sleep/Wake UUID: 0DCA1F8F-A317-4583-ADC5-59E1BE6D3292

Time Awake Since Boot: 200000 seconds Time Since Wake: 4923 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: archive info plist lock

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000

Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6 Terminating Process: Xcode [84481]

Application Specific Information: com.apple.main-thread abort() called

Application Specific Signatures: NSInvalidArgumentException