M374 is the National Archives code for the index to Alabama Confederate Service files. The only information on that film is name, rank and service unit. Nothing more.
The other information you read came from another source. It does not fit with information about the soldier's death in the actual service file.