"Invalid texture format: 12" error when I try to use Texture2DArray.SetPixels32

My script takes a bunch of Texture2D objects, creates a Texture2DArray object, and reads the data from them into it. The problem is that when I run it, I get an error that says “Invalid texture format: 12”. No other information, except for another error that says “Image invalid format!” To be exact, the error log gives two “Invalid texture format: 12” errors, then one “Image invalid format!” error, then another two “Invalid texture format: 12” and one “Image invalid format!”, and so on until the log has sixteen of the first error and eight of the second.

All of the Texture2D slots are filled, so there’s no chance that I’m getting a null reference error.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TextureArrayTesting : MonoBehaviour {
    //delete later

    public Material ArrayMaterial;

    public Texture2D AOTex1, AOTex2, AOTex3, AOTex4, NormTex1, NormTex2, NormTex3, NormTex4;

    private void makeTextureArray(string arrayName, params Texture2D[] texs){

        Texture2DArray new2darray = new Texture2DArray (texs [0].width, texs [0].height, texs.Length, texs [0].format, true);

        for (int i = 0; i < texs.Length; i++) {
            //texs [i].mipmapCount

            new2darray.SetPixels32 (texs [i].GetPixels32 (), i);//this is where the problem is

            //new2darray.SetPixels32 (texs [i].GetPixels32 (0), i, 0);
            //new2darray.SetPixels (texs [i].GetPixels (), i);
        }

        ArrayMaterial.SetTexture (arrayName, new2darray);
    }

    // Use this for initialization
    void Start () {

        makeTextureArray ("_BumpMapArray", NormTex1, NormTex2, NormTex3, NormTex4);
        makeTextureArray ("_AO_Array", AOTex1, AOTex2, AOTex3, AOTex4);

        ArrayMaterial.SetVector("_BlendingValues", new Vector4(0.2f, 0.6f, 0.35f, 0.42f));

    }
}

Any ideas on what’s causing it, or should I report it as a bug?