phosphoribosyl-AMP cyclohydrolase activity of phosphoribosyl-ATP pyrophosphohydrolase (LOC_OS01G16940.1) [plastid stroma]