I am also facing the same issue
root@ip-172-31-20-75 ~# a0deploy export -c=config.json --format=yaml --output_folder=local
2023-05-31T17:06:06.225Z - error: Problem running command export
2023-05-31T17:06:06.226Z - error: {“error”:“access_denied”,“error_description”:“Unauthorized”}