Update for robust manifest loading
jenkins
# What does this PR do ?

Update manifest loading code for better robustness and error handling.

- Strip spaces/newlines before/after each line
- Skip lines that are empty after `line.strip()`
- Cache json decode errors during reading, then print out all error lines and raise runtime error

**Collection**: [all]

