I think it is clear it says Job was blameless. I would think he loved his wife, and he cared enough about his children, to make sacrifices in case any of them had cursed. So, he was ready to be forgiving, if he was so caring, I would say. He also would dearly care for his wife; so perhaps he was hurt that she could be broken so . . . maybe surprised that she was so down while he who was suffering was not down. He was disappointed, then, I would say, but did want her, even so.
And God had him pray for the friends - - because, I consider, God knew Job was about forgiving, and so God used him for this. Forgiveness was his way; so the time of opportunity to forgive did come. This is how things work with God > if He knows we really desire what is good, He makes a way.
We see how Jesus on the cross prayed, "Father, forgive them, for they do not know what they do." (in Luke 23:34) Jesus did not allow suffering to decide how He was and what He did, and He did not let Satanic people decide if He forgave or not.
That's what mattered; like Jesus, Job did not let the horrible stuff and wrong friends and wife have the power to decide how he was and how he did things and how he saw things.
However > it looks like Job tried to justify himself . . . to defend himself. So, maybe this shows that he was blameless but not totally perfect. So, he maybe needed to be tested to expose his imperfection. After all, he does say he repents, when he sees the LORD. In comparison with the LORD . . . he was not so blameless.
Instead of us looking down on others who are wrong . . . we "might" be busier with considering how we are in comparison with Jesus!! "For the time has come for judgment to begin at the house of God; and if it begins with us first, what will be the end of those who do not obey the gospel of God?" (1 Peter 4:17)
But God had His good working, all along. So, it is wise not to look at the wrong stuff and what worldly people are doing, but always know our good God is doing such good. It is like how we humans know better than to keep track of what ants are doing