Can the impeached President who resigns before or during the impeachment trial be granted immunity from future suits?
No, unless there is a law authorizing the grant of immunity from suit. However, the institution and prosecution of criminal suits is the responsibility of the Department of Justice, which is part of the executive department. This gives the person who succeeds the resigned President control over the filing of criminal charges.