How to replace @timestamp field in logstash aggregate filter map

@timestamp has to be a LogStash::Timestamp. You could try

event.set("@timestamp", LogStash::Timestamp.new(Time.utc(2021, 6, 10, 19, 0, 0))